/*
 * @Date: 2025-02-14 10:24:15
 * @LastEditors: zl 1077167261@qq.com
 * @LastEditTime: 2025-02-14 10:24:22
 * @FilePath: \vue_Screen\src\utils\tokenMgr.js
 */
import Cookies from "js-cookie";

const KEY = "hm--vuex-token";

export function getToken() {
  const str = Cookies.get(KEY);
  if (!str) return null;
  return JSON.parse(str)?.user?.token;
}
